<template>
<!-- 提交订单 -->
  <div class="toPaid">
    <Header title="待支付" background="#fff"/>
    <div class="content">
        <p class="time">剩15分00秒关闭订单</p>
        <div class="order">
          <div class="name">元宇宙国际拍卖有限公司</div>
          <div class="con">
            <div class="left"></div>
            <div class="right">
              <div class="tit">TRON #3378</div>
              <div class="price">¥ 19.90</div>
            </div>
          </div>
        </div>
        <div class="detail">
          <div class="con">
            <div class="desc">
              <div class="label">订单编号：</div>
              <div class="copy">复制</div>
              <div class="num">202020323135</div>
            </div>
            <div class="desc">
              <div class="label">创建日期：</div>
              <div class="num">2022-01-25 22:22:22</div>
            </div>
          </div>
        </div>
    </div>
    <van-row gutter="12" class="fixedPaid">
      <van-col span="12">
         <van-button class="sub sub1" block type="info" @click="$router.go(-2)">取消订单</van-button>
      </van-col>
      <van-col span="12">
        <van-button class="sub" block type="info" @click="subClick">去付款</van-button>
      </van-col>
    </van-row>
   <!-- <div class="fixedBtm fixedPaid">
      <van-button class="sub" block type="info" @click="subClick">去付款</van-button>
      <van-button class="sub" block type="info" @click="subClick">去付款</van-button>
    </div> -->
  </div>
</template>

<script>
import { mapGetters, mapActions } from 'vuex'
export default {
  name: 'toPaid',
  computed: { ...mapGetters({ pageData: 'pageData'}) },
  data () {
    return {
      
    }
  },
  methods: {
    subClick() {
     this.$router.push({name: 'success'})
    
    }
  },
  mounted() {

  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scope>
.toPaid {
  width: 100%;
  padding-bottom: 20px;
  padding-top: 50px;
  box-sizing: border-box;
  .content {
    width: 100%;
    padding: 8px;
    padding-top: 0;
    padding-bottom: 30px;
    box-sizing: border-box;
    .time {
      font-size: 13px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #333333;
      line-height: 1;
      padding: 10px 2px;
      box-sizing: border-box;
    }
    .detail {
      border-top: 1px dashed #ccc;
      width: 100%;
      background-color: #fff;
      background: #FFFFFF;
      box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      padding: 6px 8px;
      box-sizing: border-box;
      .desc {
        height: 30px;
        line-height: 30px;
        .label {
          float: left;
          font-size: 13px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #333333;
        }
        .copy {
          float: right;
          font-size: 13px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #333333;
          padding-left: 10px;
        }
        .num {
          float: right;
          font-size: 13px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #999999;
        }
      }
    }
    .order {
      width: 100%;
      height: 98px;
      background-color: #fff;
      background: #FFFFFF;
      box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      padding-left: 8px;
      box-sizing: border-box;

      .name {
        width: 100%;
        // padding: 4px 0;
        // line-height: 1;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #666666;
        height: 32px;
        line-height: 32px;
      }
      .con {
        width: 100%;
        height: 60px;
        .left {
          float: left;
          width: 54px;
          height: 54px;
          background: brown;
        }
        .right {
          float: left;
          padding-left: 8px;
          height: 54px;
          .tit {
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #333333;
            height: 30px;
            line-height: 30px;
          }
          .price {
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #6B00F0;
            height: 24px;
            line-height: 24px;
            background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
          }
        }
      }
    }

  }
.fixedPaid {
    bottom: 0;
    left: 0;
    width: 100%;
    position: fixed;
    height: 50px;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    background: #FFFFFF;

    .sub {
      
      width: 100%;
      height: 40px;
      margin-top: 4px;
      border-radius: 40px;
      background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
      border: none;
      font-size: 13px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #fff;
    }
    .sub1 {
      font-size: 13px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #666666;
      background: #FFFFFF;
      border-radius: 40px;
      border: 1px solid #CCCCCC;
    }
  }
}
</style>
